import { Api } from '.'

export const getRuleKind = (data = {}) => {
    return Api({ url: '/fee/rulekind/list', method: 'POST', data }).then(
        res => ({
            data: res.retData
        })
    )
}

export const getRuleList = (data = {}) => {
    return Api({ url: '/fee/rule/list', method: 'POST', data }).then(res => ({
        data: res.retData
    }))
}

export const getTargetList = (data = {}) => {
    return Api({ url: '/fee/targetId/list', method: 'POST', data }).then(
        res => ({
            data: res.retData
        })
    )
}
export const getDeptList = (data = {}) => {
    return Api({ url: '/fee/dept/list', method: 'POST', data }).then(res => ({
        data: res.retData
    }))
}
export const getPatientList = (data = {}) => {
    return Api({ url: '/fee/patient/list', method: 'POST', data }).then(
        res => ({
            data: res.retData
        })
    )
}
// 质控查询 列表
export const getTaskList = (data = {}) => {
    return Api({ url: '/qcTask/list', method: 'POST', data }).then(res => ({
        data: res
    }))
}

// 质控查询 详情 /qcTaskResult/list

export const getTaskDetail = (data = {}) => {
    return Api({ url: '/qcTaskResult/list', method: 'POST', data }).then(
        res => ({
            data: res
        })
    )
}

// /qcTask/add 新增任务
export const insertTask = (data = {}) => {
    return Api({ url: '/qcTask/add', method: 'POST', data }).then(res => ({
        data: res
    }))
}

// /qcTask/add 根据条件搜索任务
export const searchTask = (data = {}) => {
    return Api({ url: '/qcTask/serchTask', method: 'POST', data }).then(
        res => ({
            data: res
        })
    )
}
// /qcTask/add 根据条件搜索任务
export const searchResult = (data = {}) => {
    return Api({ url: '/qcTaskResult/search', method: 'POST', data }).then(
        res => ({
            data: res
        })
    )
}

// /statistic/serchReport
export const serchReport = (data = {}) => {
    return Api({ url: '/statistic/serchReport', method: 'POST', data }).then(
        res => ({
            data: res.retData
        })
    )
}

// /statistic/searchResultChart
export const serchReportChart = (data = {}) => {
    return Api({
        url: '/statistic/searchResultChart',
        method: 'POST',
        data
    }).then(res => ({
        data: res.retData
    }))
}


export const login = (data = {}) => {
    return Api({
        url: '/100016',
        method: 'POST',
        data
    }).then(res => ({
        data: res.data
    }))
}